﻿using FreeSql.DataAnnotations;
using System.Collections.Generic;

namespace Enter.Admin.Entities
{
    public class DynamicTable
    {
        public long Id { get; set; }
        public string TableName { get; set; } = string.Empty;
        public string Name { get; set; } = string.Empty;
        public long UserId { get; set; }
        [Navigate(nameof(DynamicColumn.TableId))]
        public virtual IEnumerable<DynamicColumn> Columns { get; set; }
    }
}
